<?php

class backendConfiguration extends sfApplicationConfiguration
{
  static protected $zendLoaded = false;
    static public function registerZend()
    {
        if (self::$zendLoaded)
        {
            return;
        }

        //set_include_path(sfConfig::get('sf_lib_dir').'\Vendor'.PATH_SEPARATOR.get_include_path());
        //require_once sfConfig::get('sf_lib_dir').'\Vendor\Zend\Loader.php';
        //Zend_Loader::registerAutoload();
        //self::$zendLoaded = true;

        set_include_path(sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path());
        require_once sfConfig::get('sf_lib_dir').'/vendor/Zend/Loader/Autoloader.php';
        //Zend_Loader::registerAutoload();
        //self::$zendLoaded = true;

        //require_once 'Zend/Loader/Autoloader.php';  //ok
        $loader = Zend_Loader_Autoloader::getInstance();
        $loader->setFallbackAutoloader(true);
    }

    public function configure()
  {

  }
}
